package com.codelinecounter.rule;

public class SingleCommentCodeLineParser extends CodeLineParser {
	public SingleCommentCodeLineParser() {
		this.parserType = CodeLineParserCreator.CodeLineParserClass.SINGLE_COMMENT_CODE_LINE;
	}

	@Override
	public boolean parseCodeLine() {
		if (this.codeLine.startsWith("//")) {
			++this.lineCount;
			return true;
		} else
			return false;
	}

}
